<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>3D螺旋轮播</title>
    <script src="js/jquery-1.8.3.min.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        #slider-outer {
            margin: 150px auto;
            position: relative;
            width: 730px;
            height: 454px;
        }

        .slider-item {
            height: 100%;
            width: 100%;
            position: absolute;
            transform-style: preserve-3d;
            transition: 2s;
        }

        .img {
            width: 100%;
            height: 100%;
            position: absolute;
        }

        .img:nth-child(1) {
            background-image: url("images/1-1.jpg");
            transform: rotateX(0deg) translateZ(227px);
        }

        .img:nth-child(2) {
            background-image: url("images/1-2.jpg");
            transform: rotateX(90deg) translateZ(227px);
        }

        .img:nth-child(3) {
            background-image: url("images/1-3.jpg");
            transform: rotateX(180deg) translateZ(227px);
        }

        .img:nth-child(4) {
            background-image: url("images/1-4.jpg");
            transform: rotateX(270deg) translateZ(227px);
        }

        /*让图片可以构成一个有四个面的长方体 end*/
        .btns {
            position: absolute;
            top: 50%;
            width: 100%;
            height: 70px;
            margin-top: -35px;
        }

        .prev, .next {
            width: 70px;
            height: 70px;
            line-height: 70px;
            text-align: center;
            background-color: rgba(0, 0, 0, .3);
            color: #fff;
            font-size: 30px;
            cursor: pointer;
            position: absolute;
            z-index: 1;
        }

        .prev {
            left: 0;
        }

        .next {
            right: 10px;
        }
    </style>
</head>
<body>
<div id="slider-outer">
    <div class="slider-item">
        <div class="img"></div>
        <div class="img"></div>
        <div class="img"></div>
        <div class="img"></div>
    </div>
    <div class="slider-item">
        <div class="img"></div>
        <div class="img"></div>
        <div class="img"></div>
        <div class="img"></div>
    </div>
    <div class="slider-item">
        <div class="img"></div>
        <div class="img"></div>
        <div class="img"></div>
        <div class="img"></div>
    </div>
    <div class="slider-item">
        <div class="img"></div>
        <div class="img"></div>
        <div class="img"></div>
        <div class="img"></div>
    </div>
    <div class="slider-item">
        <div class="img"></div>
        <div class="img"></div>
        <div class="img"></div>
        <div class="img"></div>
    </div>
    <div class="slider-item">
        <div class="img"></div>
        <div class="img"></div>
        <div class="img"></div>
        <div class="img"></div>
    </div>
    <div class="btns" data-num="0">
        <div id="prev" class="prev"><</div>
        <div id="next" class="next">></div>
    </div>
</div> 
</body>
</html>